package com.zrrd.gmall.webll;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

//SpringBoot核心注解 属性：排除数据库数据源的自动装配
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//开启Fegin请求支持
@EnableDiscoveryClient
//扫描指定的Fegin注解
@EnableFeignClients(basePackages= {"com.zrrd.gmall"})
//扫描其他注解
@ComponentScan({"com.zrrd.gmall"})
public class WebAllApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebAllApplication.class,args);
    }
}
